package db_java;

import java.sql.SQLException;

public class CommandPut implements Command{

	@Override
	public <T> void execute(Dao<T> dao, T entry) throws SQLException {
		dao.insertInTable(entry);
		for (T t : dao.findAll()) {
			System.out.println(t);
		} 
		
	}

}
